def test_simple(self): d = descrparsers.parse_uninett_convention( 'foo-sw', 'lokal link, uninett-gw.teknobyen-gw2' ) assert d['comment'] == 'lokal link' assert d['netident'] == 'uninett-gw.teknobyen-gw2'
def test_invalid(self): d = descrparsers.parse_uninett_convention('foo-sw', 'KX182') assert d is None
def test_invalid(self): d = descrparsers.parse_uninett_convention('foo-sw', 'KX182') self.assertEquals(d, None)