示例#1
0
 def test_parse_charm_id_notfound(self, mCharm):
     mCharm.side_effect = Exception('Charm not found')
     self.assertEqual(None, parse_charm_id('precise/dummy-0'))
示例#2
0
 def test_parse_charm_id_cs(self, mCharm):
     self.assertEqual(mCharm(), parse_charm_id('cs:precise/dummy-0'))
     mCharm.assert_called_with('precise/dummy-0')