Пример #1
0
 def test_generate_id_in_blueprint_folder(self):
     """Generate blueprint id from relative directory."""
     self.assertThat(
         blueprint.generate_id(os.path.join('.', SAMPLE_BLUEPRINT_PATH)),
         Equals('helloworld'),
     )
Пример #2
0
 def test_generate_id_custom(self):
     """Generate blueprint id from directory and custom filename."""
     self.assertThat(
         blueprint.generate_id(SAMPLE_BLUEPRINT_PATH, 'test.yaml'),
         Equals('{0}.test'.format(STUB_DIRECTORY_NAME)),
     )
Пример #3
0
 def test_generate_id_default(self):
     """Generate blueprint id from directory."""
     self.assertThat(
         blueprint.generate_id(SAMPLE_BLUEPRINT_PATH),
         Equals(STUB_DIRECTORY_NAME),
     )
Пример #4
0
 def test_generate_id_in_blueprint_folder(self):
     """Generate blueprint id from relative directory."""
     self.assertThat(
         blueprint.generate_id(os.path.join('.', SAMPLE_BLUEPRINT_PATH)),
         Equals('helloworld'),
     )
Пример #5
0
 def test_generate_id_custom(self):
     """Generate blueprint id from directory and custom filename."""
     self.assertThat(
         blueprint.generate_id(SAMPLE_BLUEPRINT_PATH, 'test.yaml'),
         Equals('{0}.test'.format(STUB_DIRECTORY_NAME)),
     )
Пример #6
0
 def test_generate_id_default(self):
     """Generate blueprint id from directory."""
     self.assertThat(
         blueprint.generate_id(SAMPLE_BLUEPRINT_PATH),
         Equals(STUB_DIRECTORY_NAME),
     )