Support loading in Figfiles with .yaml extension

Add basic boilerplate text - feel free to change
This commit is contained in:
Chris Adams 2014-01-28 00:43:23 +00:00
commit 1d18d747a5
3 changed files with 21 additions and 1 deletions

View file

@ -15,6 +15,13 @@ class CLITestCase(DockerClientTestCase):
self.command.project.kill()
self.command.project.remove_stopped()
def test_yaml_filename_check(self):
self.command.base_dir = 'tests/fixtures/longer-filename-figfile'
project = self.command.project
self.assertTrue( project.get_service('definedinyamlnotyml'), "Service: definedinyamlnotyml should have been loaded from .yaml file" )
def test_help(self):
self.assertRaises(SystemExit, lambda: self.command.dispatch(['-h'], None))