def test_validfullcodes(self):
     self.assertTrue(pluscodes.isValid('8FWC2345+G6') and pluscodes.isFull('8FWC2345+G6'))
     self.assertTrue(pluscodes.isValid('8FWC2345+G6G') and pluscodes.isFull('8FWC2345+G6G'))
     self.assertTrue(pluscodes.isValid('8fwc2345+') and pluscodes.isFull('8fwc2345+'))
     self.assertTrue(pluscodes.isValid('8FWCX400+') and pluscodes.isFull('8FWCX400+'))
     self.assertFalse(pluscodes.isShort('8FWCX400+'))
     self.assertFalse(pluscodes.isShort('8fwc2345+'))
 def test_validshortcodes(self):
     self.assertTrue(pluscodes.isValid('WC2345+G6g') and pluscodes.isShort('WC2345+G6g'))
     self.assertTrue(pluscodes.isValid('2345+G6') and pluscodes.isShort('2345+G6'))
     self.assertTrue(pluscodes.isValid('45+G6') and pluscodes.isShort('45+G6'))
     self.assertTrue(pluscodes.isValid('+G6') and pluscodes.isShort('+G6'))
     self.assertFalse(pluscodes.isFull('45+G6'))
     self.assertFalse(pluscodes.isFull('WC2345+G6g'))
 def test_invalidcodes(self):
     self.assertFalse(pluscodes.isValid('G+'))
     self.assertFalse(pluscodes.isValid('+'))
     self.assertFalse(pluscodes.isValid('8FWC2345+G'))
     self.assertFalse(pluscodes.isValid('8FWC2_45+G6'))
     self.assertFalse(pluscodes.isValid('8FWC2η45+G6'))
     self.assertFalse(pluscodes.isValid('8FWC2345+G6+'))
     self.assertFalse(pluscodes.isValid('8FWC2300+G6'))
     self.assertFalse(pluscodes.isValid('WC2300+G6g'))
     self.assertFalse(pluscodes.isValid('WC2345+G'))