def test_social_account_without_token_serialization(self):
        tokens = []

        social_account = SocialAccount("zcas", self.utc_datetime, self.utc_datetime, tokens, "zcc")

        serialized_social_account = social_account.serialize()
        self.assertEquals(SocialAccount.deserialize(serialized_social_account), social_account)
    def test_social_account_serialization(self):
        tokens = [
            SocialAccountToken("xxzc", "zxcc", self.utc_datetime),
            SocialAccountToken("xxzc", "zxcc", self.utc_datetime),
        ]

        social_account = SocialAccount("zcas", self.utc_datetime, self.utc_datetime, tokens, "zcc")

        serialized_social_account = social_account.serialize()
        self.assertEquals(SocialAccount.deserialize(serialized_social_account), social_account)
    def test_social_account_without_token_serialization(self):
        tokens = []

        social_account = SocialAccount("zcas",
                                       self.utc_datetime,
                                       self.utc_datetime,
                                       tokens,
                                       "zcc")

        serialized_social_account = social_account.serialize()
        self.assertEquals(SocialAccount.deserialize(serialized_social_account), social_account)
    def test_social_account_serialization(self):
        tokens = [SocialAccountToken("xxzc", "zxcc", self.utc_datetime),
                  SocialAccountToken("xxzc", "zxcc", self.utc_datetime)]

        social_account = SocialAccount("zcas",
                                       self.utc_datetime,
                                       self.utc_datetime,
                                       tokens,
                                       "zcc")

        serialized_social_account = social_account.serialize()
        self.assertEquals(SocialAccount.deserialize(serialized_social_account), social_account)