def testGoHangASalamiCommaImALasagnaHog(self): """End to end test for the str 'go hang a salami, I'm a lasagna hog'.""" decoded = decode([ 200319795, 133178981, 234094669, 267441422, 78666124, 99619077, 267653454, 133178165, 124794470 ]) self.assertEqual(decoded, "go hang a salami, I'm a lasagna hog")
def testEgadCommaABaseToneDenotesABadAge(self): """End to end test for the str 'egad, a base tone denotes a bad age'.""" decoded = decode([ 267389735, 82841860, 267651166, 250793668, 233835785, 267665210, 99680277, 133170194, 124782119 ]) self.assertEqual(decoded, 'egad, a base tone denotes a bad age')
def testNeverOddOrEven(self): """End to end test for the string 'never odd or even'.""" decoded = decode( [267657050, 233917524, 234374596, 250875466, 17830160]) self.assertEqual(decoded, 'never odd or even')
def testLagerCommaSitCommaIsRegal(self): """End to end test for the string 'lager, sir, is regal'.""" decoded = decode( [267394382, 167322264, 66212897, 200937635, 267422503]) self.assertEqual(decoded, 'lager, sir, is regal')
def testNo(self): """End to end test for the string 'no'.""" decoded = decode([53490482]) self.assertEqual(decoded, 'no')
def testTacocat(self): """End to end test for the string 'tacocat'.""" decoded = decode([267487694, 125043731]) self.assertEqual(decoded, 'tacocat')
def testCarrotCarrotCarrotCarrot(self): """End to end test for the string '^^^^'.""" decoded = decode([252706800]) self.assertEqual(decoded, '^^^^')
def testCapWoot(self): """End to end test for the string 'Woot'.""" decoded = decode([266956663]) self.assertEqual(decoded, 'Woot')
def testDotDotDotDot(self): """End to end test for the string '....'.""" decoded = decode([15794160]) self.assertEqual(decoded, '....')
def testAllCapsBird(self): """End to end test for the string 'BIRD'.""" decoded = decode([251930706]) self.assertEqual(decoded, 'BIRD')
def testFoot(self): """End to end test for the string 'foot'.""" decoded = decode([267939702]) self.assertEqual(decoded, 'foot')
def testSpaceFoo(self): """End to end test for the string ' foo'.""" decoded = decode([250662636]) self.assertEqual(decoded, ' foo')
def testFoo(self): """End to end test for the string 'foo'.""" decoded = decode([124807030]) self.assertEqual(decoded, 'foo')