예제 #1
0
파일: test_plugin.py 프로젝트: tsuru/rpaas
 def test_get_command_not_found(self):
     with self.assertRaises(plugin.CommandNotFoundError) as cm:
         plugin.get_command("something i don't know")
     exc = cm.exception
     self.assertEqual("something i don't know", exc.name)
예제 #2
0
 def test_get_command_not_found(self):
     with self.assertRaises(plugin.CommandNotFoundError) as cm:
         plugin.get_command("something i don't know")
     exc = cm.exception
     self.assertEqual("something i don't know", exc.name)
예제 #3
0
파일: test_plugin.py 프로젝트: tsuru/rpaas
 def test_get_command(self):
     cmd = plugin.get_command("scale")
     self.assertEqual(plugin.scale, cmd)
예제 #4
0
 def test_get_command(self):
     cmd = plugin.get_command("scale")
     self.assertEqual(plugin.scale, cmd)