예제 #1
0
 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'
예제 #2
0
 def test_invalid(self):
     d = descrparsers.parse_uninett_convention('foo-sw', 'KX182')
     assert d is None
예제 #3
0
 def test_invalid(self):
     d = descrparsers.parse_uninett_convention('foo-sw', 'KX182')
     self.assertEquals(d, None)