Ejemplo n.º 1
0
 def test_environment_file_exist(self):
     with mock.patch.object(env, 'from_file', return_value={}):
         spec = YamlFileSpec(name=None, filename='environment.yaml')
         self.assertTrue(spec.can_handle())
Ejemplo n.º 2
0
 def test_environment_file_exist(self):
     with mock.patch.object(env, 'from_file', return_value={}):
         spec = YamlFileSpec(name=None, filename='environment.yaml')
         self.assertTrue(spec.can_handle())
Ejemplo n.º 3
0
 def test_no_environment_file(self):
     spec = YamlFileSpec(name=None, filename='not-a-file')
     self.assertEqual(spec.can_handle(), False)
Ejemplo n.º 4
0
 def test_no_environment_file(self):
     spec = YamlFileSpec(name=None, filename='not-a-file')
     self.assertEqual(spec.can_handle(), False)