class TestBlueprintContext(unittest.TestCase): def setUp(self): self.context = BlueprintContext(**generate_definition('vpc', 1)) def test_status(self): self.assertFalse(self.context.submitted) self.assertFalse(self.context.completed) self.context.submit() self.assertTrue(self.context.submitted) self.assertFalse(self.context.completed) self.context.complete() self.assertTrue(self.context.submitted) self.assertTrue(self.context.completed) def test_requires(self): self.assertIn('fakeStack', self.context.requires) self.assertIn('fakeStack2', self.context.requires)
def setUp(self): self.context = BlueprintContext(**generate_definition('vpc', 1))