예제 #1
0
    def test_MessageIsStr(self):
        # ararnge
        message = 'hoge'

        # act
        actual = facade._decode(message)

        # assert
        self.assertEqual(u'hoge', actual)
예제 #2
0
    def test_MessageIsNotText(self):
        #arrange
        message = 10

        # act
        actual = facade._decode(message)

        # assert
        self.assertIsNone(actual)
예제 #3
0
    def test_MessageIsUnicode(self):
        # arrange
        message = u'hoge'

        # act
        actual = facade._decode(message)

        # assert
        self.assertEqual(u'hoge', actual)
예제 #4
0
    def test_MessageIsStr(self):
        # ararnge
        message = "hoge"

        # act
        actual = facade._decode(message)

        # assert
        self.assertEqual(u"hoge", actual)
예제 #5
0
    def test_MessageIsNotText(self):
        # arrange
        message = 10

        # act
        actual = facade._decode(message)

        # assert
        self.assertIsNone(actual)
예제 #6
0
    def test_MessageIsUnicode(self):
        # arrange
        message = u"hoge"

        # act
        actual = facade._decode(message)

        # assert
        self.assertEqual(u"hoge", actual)