

def test_get_ip_usage_aggregated(self):
    ret = self.net3.get_ip_usage_aggregated()
    correct = [{
        'amount': 10,
        'range_end': '192.168.128.9',
        'range_start': '192.168.128.0',
        'type': 'free',
    }, {
        'amount': 2,
        'range_end': '192.168.128.11',
        'range_start': '192.168.128.10',
        'type': 'addr',
    }, {
        'amount': 1268,
        'range_end': '192.168.132.255',
        'range_start': '192.168.128.12',
        'type': 'free',
    }, {
        'amount': 257,
        'range_end': '192.168.134.0',
        'range_start': '192.168.133.0',
        'type': self.net4,
    }, {
        'amount': 31232,
        'range_end': '192.169.0.0',
        'range_start': '192.168.134.1',
        'type': 'free',
    }]
    self.assertEquals(ret, correct)

dataset/ETHPy150Open allegro/ralph/src/ralph/data_center/tests/test_models.py NetworkTest.test_get_ip_usage_aggregated/original