

def test_remove_asn(self):
    ' Test removing ASNs from NIPAP.\n        '
    data = {
        'asn': 2,
        'name': 'Test ASN #2',
    }
    asn = self.nipap.add_asn(data.auth, data)
    self.nipap.remove_asn(self.auth, asn)
    self.assertEquals(0, len(self.nipap.list_asn(self.auth, {
        'asn': 2,
    })), 'Removed ASN still in database')

dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipapbase.py NipapTest.test_remove_asn/VarMisuse@36/72 `self`->`data`