

def test_upload_bad_action(self):
    " Upload endpoint only respects 'file_upload' action "
    self.params = {
        ':action': 'blah',
    }
    (name, version, content) = ('foo', 'bar', 'baz')
    response = upload(self.request, content, name, version)
    self.assertEqual(response.status_code, 400)

dataset/ETHPy150Open mathcamp/pypicloud/tests/test_simple.py TestSimple.test_upload_bad_action/original