def METHOD_NAME(self, group_code_mock):
    """Test add_new_resource if dataset type is 'geno'"""
    group_code_mock.return_value = "Test"
    test_dataset = mock.MagicMock()
    type(test_dataset).name = mock.PropertyMock(return_value="Geno")
    type(test_dataset).type = mock.PropertyMock(return_value="Geno")
    type(test_dataset).id = mock.PropertyMock(return_value=20)
    expected_value = {
        "owner_id": "none",
        "default_mask": "John Doe",
        "group_masks": {},
        "name": "Geno",
        "data": {
            "dataset": 20,
        },
        "type": "dataset-geno"
    }
    self.assertEqual(add_new_resource(test_dataset),
                     expected_value)