Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2175)

Unified Diff: mojo/python/tests/bindings_constants_unittest.py

Issue 675563002: Remove mojo/python and gyp targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/python/tests/async_wait_unittest.py ('k') | mojo/python/tests/bindings_enums_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/python/tests/bindings_constants_unittest.py
diff --git a/mojo/python/tests/bindings_constants_unittest.py b/mojo/python/tests/bindings_constants_unittest.py
deleted file mode 100644
index 85e97c602b5d734445d969d1eb06329672ed0515..0000000000000000000000000000000000000000
--- a/mojo/python/tests/bindings_constants_unittest.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import math
-import unittest
-
-# Generated files
-# pylint: disable=F0401
-import sample_service_mojom
-
-
-class ConstantBindingsTest(unittest.TestCase):
-
- def testConstantGeneration(self):
- self.assertEquals(sample_service_mojom.TWELVE, 12)
- self.assertEquals(sample_service_mojom.TOO_BIG_FOR_SIGNED_INT64,
- 9999999999999999999)
- self.assertEquals(sample_service_mojom.DOUBLE_INFINITY,
- float('inf'))
- self.assertEquals(sample_service_mojom.DOUBLE_NEGATIVE_INFINITY,
- float('-inf'))
- self.assertTrue(math.isnan(sample_service_mojom.DOUBLE_NA_N))
- self.assertEquals(sample_service_mojom.FLOAT_INFINITY,
- float('inf'))
- self.assertEquals(sample_service_mojom.FLOAT_NEGATIVE_INFINITY,
- float('-inf'))
- self.assertTrue(math.isnan(sample_service_mojom.FLOAT_NA_N))
-
- def testConstantOnStructGeneration(self):
- self.assertEquals(sample_service_mojom.Foo.FOOBY, "Fooby")
-
- def testStructImmutability(self):
- with self.assertRaises(AttributeError):
- sample_service_mojom.Foo.FOOBY = 0
- with self.assertRaises(AttributeError):
- del sample_service_mojom.Foo.FOOBY
- with self.assertRaises(AttributeError):
- sample_service_mojom.Foo.BAR = 1
« no previous file with comments | « mojo/python/tests/async_wait_unittest.py ('k') | mojo/python/tests/bindings_enums_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698