def test_get_parameter_for_three_sharding_instances(self): result = run_e2e_tests.get_parameter_for_sharding(3) self.assertEqual([ '--capabilities.shardTestFiles=True', '--capabilities.maxInstances=3' ], result)
def test_get_parameter_for_negative_sharding_instances(self): with self.assertRaises(ValueError): run_e2e_tests.get_parameter_for_sharding(-3)
def test_get_parameter_for_one_sharding_instance(self): result = run_e2e_tests.get_parameter_for_sharding(1) self.assertEqual([], result)