def test_MessageIsStr(self): # ararnge message = 'hoge' # act actual = facade._decode(message) # assert self.assertEqual(u'hoge', actual)
def test_MessageIsNotText(self): #arrange message = 10 # act actual = facade._decode(message) # assert self.assertIsNone(actual)
def test_MessageIsUnicode(self): # arrange message = u'hoge' # act actual = facade._decode(message) # assert self.assertEqual(u'hoge', actual)
def test_MessageIsStr(self): # ararnge message = "hoge" # act actual = facade._decode(message) # assert self.assertEqual(u"hoge", actual)
def test_MessageIsNotText(self): # arrange message = 10 # act actual = facade._decode(message) # assert self.assertIsNone(actual)
def test_MessageIsUnicode(self): # arrange message = u"hoge" # act actual = facade._decode(message) # assert self.assertEqual(u"hoge", actual)