Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
 def setUp(self):
     self.context = BlueprintContext(**generate_definition('vpc', 1))
Пример #4
0
 def setUp(self):
     self.context = BlueprintContext(**generate_definition('vpc', 1))