Did I find the right examples for you? yes no

All Samples(169)  |  Call(169)  |  Derive(0)  |  Import(0)
Assert that 'observed' is equal to None.

:param observed: The observed value.
:param message: An optional message describing the error.

src/y/c/yconf-0.3.2/yconf/tests/test_util.py   yconf(Download)
        self.assertEqual(nd.a.get("b").c, "d")
 
        self.assertIsNone(nd.get("x"), None)
        self.assertEqual(nd.get("x", "y"), "y")
 
 
        self.assertEqual("d", nd.lookup(("a", "b", "c")))
        self.assertIsNone(None, nd.lookup(("a", "x", "y")))
        self.assertEqual(self.data["a"], nd.lookup(["a"]))
 
    def test_parent(self):
 
        nd = NestedDict(self.data)
        self.assertEqual(nd, nd.a.parent)
        self.assertIsNone(nd.parent)
 
        nd.update({"parent": "foo"})
        self.assertIsNone(nd.parent)

src/t/r/trove-HEAD/trove/tests/unittests/backup/test_storage.py   trove(Download)
        self.assertFalse(success, "The backup should have failed!")
        self.assertTrue(note.startswith("Error saving data to Swift!"))
        self.assertIsNone(checksum,
                          "Swift checksum should be None for failed backup.")
        self.assertEqual('http://mockswift/v1/database_backups/'
        self.assertFalse(success, "The backup should have failed!")
        self.assertTrue(note.startswith("Error saving data to Swift!"))
        self.assertIsNone(checksum,
                          "Swift checksum should be None for failed backup.")
        self.assertEqual('http://mockswift/v1/database_backups/'

src/h/e/heat-HEAD/heat/tests/test_properties.py   heat(Download)
        })
        self.assertEqual(properties.Schema.STRING, s.type)
        self.assertIsNone(s.description)
        self.assertIsNone(s.default)
        self.assertFalse(s.required)
        self.assertIsInstance(c, constraints.Length)
        self.assertEqual(4, c.min)
        self.assertIsNone(c.max)
 
    def test_from_legacy_max_length(self):
        c = s.constraints[0]
        self.assertIsInstance(c, constraints.Length)
        self.assertIsNone(c.min)
        self.assertEqual(8, c.max)
 
        self.assertIsInstance(c, constraints.Range)
        self.assertEqual(4, c.min)
        self.assertIsNone(c.max)
 
    def test_from_legacy_max_value(self):

src/p/y/python-troveclient-1.0.5/troveclient/compat/tests/test_common.py   python-troveclient(Download)
    def check_default_options(self, co):
        self.assertIsNone(co.username)
        self.assertIsNone(co.apikey)
        self.assertIsNone(co.tenant_id)
        self.assertIsNone(co.auth_url)
        self.assertEqual('keystone', co.auth_type)
        self.assertEqual('database', co.service_type)
        self.assertEqual('RegionOne', co.region)
        self.assertIsNone(co.service_url)

src/p/y/python-troveclient-HEAD/troveclient/compat/tests/test_common.py   python-troveclient(Download)
    def check_default_options(self, co):
        self.assertIsNone(co.username)
        self.assertIsNone(co.apikey)
        self.assertIsNone(co.tenant_id)
        self.assertIsNone(co.auth_url)
        self.assertEqual('keystone', co.auth_type)
        self.assertEqual('database', co.service_type)
        self.assertEqual('RegionOne', co.region)
        self.assertIsNone(co.service_url)

src/t/e/testtools-0.9.35/testtools/tests/test_testcase.py   testtools(Download)
    def test_assertIsNone(self):
        self.assertIsNone(None)
 
        expected_error = 'None is not 0'
        self.assertFails(expected_error, self.assertIsNone, 0)

src/t/e/testtools-HEAD/testtools/tests/test_testcase.py   testtools(Download)
    def test_assertIsNone(self):
        self.assertIsNone(None)
 
        expected_error = 'None is not 0'
        self.assertFails(expected_error, self.assertIsNone, 0)

src/t/r/trove-HEAD/trove/tests/unittests/backup/test_backup_models.py   trove(Download)
    def test_list(self):
        backups, marker = models.Backup.list(self.context)
        self.assertIsNone(marker)
        self.assertEqual(1, len(backups))
 
        backups, marker = models.Backup.list_for_instance(self.context,
                                                          self.instance_id)
        self.assertIsNone(marker)
        self.assertEqual(2, len(backups))
 
        backups, marker = models.Backup.list_for_instance(self.context,
                                                          self.instance_id)
        self.assertIsNone(marker)
        self.assertEqual(0, len(backups))
 
        self.context.marker = 40
        backups, marker = models.Backup.list(self.context)
        self.assertIsNone(marker)
        self.assertEqual(10, len(backups))
 
        backups, marker = models.Backup.list_for_instance(self.context,
                                                          self.instance_id)
        self.assertIsNone(marker)
        self.assertEqual(10, len(backups))
 

src/z/u/zuul-HEAD/tests/test_scheduler.py   zuul(Download)
        self.waitUntilSettled()
 
        self.assertIsNone(self.getJobFromHistory('node-project-merge').node)
        self.assertEqual(self.getJobFromHistory('node-project-test1').node,
                         'debian')
        self.assertIsNone(self.getJobFromHistory('node-project-test2').node)
        self.waitUntilSettled()
 
        self.assertIsNone(self.getJobFromHistory('node-project-merge').node)
        self.assertEqual(self.getJobFromHistory('node-project-test1').node,
                         'debian')
        self.assertIsNone(self.getJobFromHistory('node-project-test2').node)
        self.waitUntilSettled()
 
        self.assertIsNone(self.getJobFromHistory('node-project-merge').node)
        self.assertEqual(self.getJobFromHistory('node-project-test1').node,
                         'wheezy')

src/z/u/zuul-2.0.0/tests/test_scheduler.py   zuul(Download)
        self.waitUntilSettled()
 
        self.assertIsNone(self.getJobFromHistory('node-project-merge').node)
        self.assertEqual(self.getJobFromHistory('node-project-test1').node,
                         'debian')
        self.assertIsNone(self.getJobFromHistory('node-project-test2').node)
        self.waitUntilSettled()
 
        self.assertIsNone(self.getJobFromHistory('node-project-merge').node)
        self.assertEqual(self.getJobFromHistory('node-project-test1').node,
                         'debian')
        self.assertIsNone(self.getJobFromHistory('node-project-test2').node)
        self.waitUntilSettled()
 
        self.assertIsNone(self.getJobFromHistory('node-project-merge').node)
        self.assertEqual(self.getJobFromHistory('node-project-test1').node,
                         'wheezy')

  1 | 2 | 3 | 4 | 5  Next