3
# This amulet test deploys the bundles.yaml file in this directory.
13
class BundleTest(unittest.TestCase):
14
""" Create a class for testing the charm in the unit test framework. """
17
""" Set up an amulet deployment using the bundle. """
18
d = amulet.Deployment()
19
bundle_path = os.path.join(os.path.dirname(__file__), 'bundles.yaml')
20
with open(bundle_path, 'r') as bundle_file:
21
contents = yaml.safe_load(bundle_file)
23
d.setup(seconds_to_wait)
24
d.sentry.wait(seconds_to_wait)
27
def test_deployed(self):
28
""" Test to see if the bundle deployed successfully. """
29
self.assertTrue(self.d.deployed)
32
if __name__ == '__main__':
b'\\ No newline at end of file'