Exemplo n.º 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'),
     )
Exemplo n.º 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)),
     )
Exemplo n.º 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),
     )
Exemplo 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'),
     )
Exemplo 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)),
     )
Exemplo 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),
     )