def test_default_command(self): kubectl = Kubectl() default_cmd = kubectl._make_command() expected = ['kubectl', 'get', 'pods'] assert default_cmd == expected
def test_namespaced_command(self): kubectl = Kubectl() kubectl.namespace = 'twyla' default_cmd = kubectl._make_command() expected = ['kubectl', '--namespace', 'twyla', 'get', 'pods'] assert default_cmd == expected