Example #1
0
 def test_from_data_unknown(self):
     with self.assertRaises(ValueError):
         cmd = Proto2Command.from_data({})
Example #2
0
 def test_from_data_unknown(self):
     with self.assertRaises(ValueError):
         cmd = Proto2Command.from_data({})
Example #3
0
 def create(self, name="name", params="params"):
     return Proto2Command(name, params)
Example #4
0
 def test_from_data_emulator_shell(self):
     data = {"emulator_shell": "emulator_shell"}
     cmd = Proto2Command.from_data(data)
     self.assertEqual("runEmulatorShell", cmd.name)
     self.assertEqual(data, cmd.params)