def test_finds_lib(self):
     specs = DustySpecs(self.temp_specs_path)
     self.assertEquals(specs.get_app_or_lib('lib-a'), specs['libs']['lib-a'])
 def test_raises_without_app_or_lib(self):
     specs = DustySpecs(self.temp_specs_path)
     with self.assertRaises(KeyError):
         specs.get_app_or_lib('non-existant-thingy')
Example #3
0
 def make_test_specs(self, specs_dict, fake_specs_from_path):
     fake_specs_from_path.return_value = specs_dict
     return DustySpecs('')
Example #4
0
 def test_get_app_or_service(self):
     specs = DustySpecs(self.temp_specs_path)
     self.assertEquals(specs.get_app_or_service('app-a'), specs['apps']['app-a'])
     self.assertEquals(specs.get_app_or_service('service-a'), specs['services']['service-a'])
Example #5
0
 def test_get_app_or_service(self):
     specs = DustySpecs(self.temp_specs_path)
     self.assertEquals(specs.get_app_or_service('app-a'),
                       specs['apps']['app-a'])
     self.assertEquals(specs.get_app_or_service('service-a'),
                       specs['services']['service-a'])
Example #6
0
 def test_raises_without_app_or_lib(self):
     specs = DustySpecs(self.temp_specs_path)
     with self.assertRaises(KeyError):
         specs.get_app_or_lib('non-existant-thingy')
Example #7
0
 def test_finds_app_or_lib(self):
     specs = DustySpecs(self.temp_specs_path)
     self.assertEquals(specs.get_app_or_lib('app-a'),
                       specs['apps']['app-a'])
     self.assertEquals(specs.get_app_or_lib('lib-a'),
                       specs['libs']['lib-a'])