def test_name_flags(self): self.test_context._flags = base.Flags( **{"no_setup": True, "no_teardown": True}) self.test_context._name = 'foo' self.test_context._task_id = '1234567890' self.assertEqual(self.test_context.name, 'foo') self.assertEqual(self.test_context.assigned_name, 'foo')
def test___init__with_flags(self): flags = base.Flags(no_setup=True) self.assertTrue(flags.no_setup) self.assertFalse(flags.no_teardown)
def setUp(self): self.flags = base.Flags()