Beispiel #1
0
 def test_configure_args(self):
     ActionElect.configure_args(self.subparsers)
     sys.argv = ['kafka-assigner', 'elect']
     parsed_args = self.parser.parse_args()
     assert parsed_args.action == 'elect'
Beispiel #2
0
 def test_process_cluster(self):
     action = ActionElect(self.args, self.cluster)
     action.process_cluster()
     assert True
Beispiel #3
0
 def test_create_class(self):
     action = ActionElect(self.args, self.cluster)
     assert isinstance(action, ActionElect)