Revision d368ec0c snf-cyclades-app/synnefo/api/test/networks.py

b/snf-cyclades-app/synnefo/api/test/networks.py
122 122
                             json.dumps(request), 'json')
123 123
        self.assertFault(response, 403, "forbidden")
124 124

  
125
    def test_invalid_subnet(self, mrapi):
126
        """Test invalid subnet"""
127
        request = {
128
            'network': {'name': 'foo', 'cidr': '10.0.0.10/27'}
129
            }
130
        response = self.post('/api/v1.1/networks/', 'user1',
131
                             json.dumps(request), 'json')
132
        self.assertBadRequest(response)
133

  
125 134
    def test_list_networks(self, mrapi):
126 135
        """Test that expected list of networks is returned."""
127 136
        # Create a deleted network

Also available in: Unified diff