'Zephyr mirror realms find out the status of their mirror bot'

def test_mirror_presence(self):

    user_profile = self.mit_user('espuser')
    email = user_profile.email
    self.login(email)
    def post_presence():
        result = self.client_post('/json/users/me/presence', {'status': 'idle'})
        self.assert_json_success(result)
        json = ujson.loads(result.content)
        return json
    json = post_presence()
    self.assertEqual(json['zephyr_mirror_active'], False)
    self._simulate_mirror_activity_for_user(user_profile)
    json = post_presence()
    self.assertEqual(json['zephyr_mirror_active'], True)
