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'),
     )
 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)),
     )
 def test_generate_id_default(self):
     """Generate blueprint id from directory."""
     self.assertThat(
         blueprint.generate_id(SAMPLE_BLUEPRINT_PATH),
         Equals(STUB_DIRECTORY_NAME),
     )
Esempio n. 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'),
     )
Esempio n. 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)),
     )
Esempio n. 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),
     )