Exemple #1
0
 def test_get_flavor_file_exists(self, fs):
     flavor_contents = """ data:
     - SX48.8
     - SX48.12
     """
     flavor_file = "/tmp/.flavor.yml"
     fs.create_file(flavor_file, contents=flavor_contents)
     if os.name != "nt":
         assert lambdafunc.get_flavor() == ["SX48.8", "SX48.12"]
Exemple #2
0
 def test_get_flavor_file_exists(self, fs):
     flavor_contents = """ data:
     - SX48.8
     - SX48.12
     """
     temp = utils.tmp_dir()
     flavor_file = os.path.join(temp, "flavor.yml")
     fs.create_file(flavor_file, contents=flavor_contents)
     if os.name != "nt":
         assert lambdafunc.get_flavor() == ["SX48.8", "SX48.12"]
Exemple #3
0
 def test_get_flavor(self):
     assert 'SS2.1' in lambdafunc.get_flavor()
Exemple #4
0
 def test_get_flavor_no_file(self, monkeypatch):
     monkeypatch.setattr(neo.libs.vm, "get_flavor", self.fake_get_flavor)
     if os.name != "nt":
         assert lambdafunc.get_flavor() == ["SS2.1", "SL24.8"]