def test_view_retains_ndarray_subclass():
    adata = ad.AnnData(np.zeros((10, 10)))
    adata.obsm["foo"] = np.zeros((10, 5)).view(NDArraySubclass)

    view = adata[:5, :]

    assert isinstance(view.obsm["foo"], NDArraySubclass)
    assert view.obsm["foo"].shape == (5, 5)
def test_reject_voiceover_application(self):
        self.assertEqual(self.voiceover_application.final_reviewer_id, None)
        self.assertEqual(self.voiceover_application.status, 'review')

        self.voiceover_application.reject(self.reviewer_id, 'rejection message')

        self.assertEqual(
            self.voiceover_application.final_reviewer_id, self.reviewer_id)
        self.assertEqual(self.voiceover_application.status, 'rejected')
        self.assertEqual(
            self.voiceover_application.rejection_message, 'rejection message')