'Test: create/edit a subprofile object'

def _create_subprofile(self):

    profiles = self.remote.get_profiles(self.token)
    tprint('new_subprofile')
    subprofile = self.remote.new_subprofile(self.token)
    tprint('modify_profile')
    self.assertTrue(self.remote.modify_profile(subprofile, 'name', 'testsubprofile0', self.token))
    self.assertTrue(self.remote.modify_profile(subprofile, 'parent', 'testprofile0', self.token))
    tprint('save_profile')
    self.assertTrue(self.remote.save_profile(subprofile, self.token))
    new_profiles = self.remote.get_profiles(self.token)
    self.assertTrue((len(new_profiles) == (len(profiles) + 1)))
