Revision 326c3ec8 snf-cyclades-app/synnefo/quotas/tests.py

b/snf-cyclades-app/synnefo/quotas/tests.py
97 97
        self.assertEqual(holdings["user2"], user_holdings["user2"])
98 98

  
99 99
    def test_floating_ip_holdings(self):
100
        mfactory.FloatingIPFactory(userid="user1")
101
        mfactory.FloatingIPFactory(userid="user1")
102
        mfactory.FloatingIPFactory(userid="user2")
103
        mfactory.FloatingIPFactory(userid="user3")
100
        mfactory.IPAddressFactory(userid="user1")
101
        mfactory.IPAddressFactory(userid="user1")
102
        mfactory.IPAddressFactory(userid="user2")
103
        mfactory.IPAddressFactory(userid="user3")
104 104
        holdings = util.get_db_holdings()
105 105
        self.assertEqual(holdings["user1"]["cyclades.floating_ip"], 2)
106 106
        self.assertEqual(holdings["user2"]["cyclades.floating_ip"], 1)

Also available in: Unified diff