def test_get_user_identifer_remote(self, _): """ for a remote user, should be their full username """ self.assertEqual( bookwyrm_tags.get_user_identifier(self.remote_user), "*****@*****.**" )
def test_get_user_identifer_remote(self): ''' for a remote user, should be their full username ''' self.assertEqual( bookwyrm_tags.get_user_identifier(self.remote_user), '*****@*****.**')
def test_get_user_identifer_local(self, _): """ fall back to the simplest uid available """ self.assertNotEqual(self.user.username, self.user.localname) self.assertEqual(bookwyrm_tags.get_user_identifier(self.user), "mouse")
def test_get_user_identifer_local(self): ''' fall back to the simplest uid available ''' self.assertNotEqual(self.user.username, self.user.localname) self.assertEqual( bookwyrm_tags.get_user_identifier(self.user), 'mouse')