Revision a3accf03 snf-cyclades-app/synnefo/api/test/flavors.py

b/snf-cyclades-app/synnefo/api/test/flavors.py
136 136
        # XXX: flavors/22 below fails for no apparent reason
137 137
        response = self.myget('flavors/%d' % 23)
138 138
        self.assertItemNotFound(response)
139

  
140
    def test_catch_wrong_api_paths(self, *args):
141
        response = self.myget('nonexistent')
142
        self.assertEqual(response.status_code, 400)
143
        try:
144
            error = json.loads(response.content)
145
        except ValueError:
146
            self.assertTrue(False)

Also available in: Unified diff