def test_dame_gender_features_list_no_letters(self): g = Gender() flnl = g.features_list_no_letters('files/names/partial.csv') self.assertTrue(len(flnl[0]) > 5) self.assertEqual(flnl[0], [112, 101, 3, 2, 0, 1, 1, 0, 0, 0])
def test_dame_gender_features_list_no_letters_method_returns_correct_result( self): g = Gender() flnl = g.features_list_no_letters('files/names/partial.csv') self.assertTrue(len(flnl[0]) > 5) self.assertEqual(flnl[0], [112, 101, 0, 0, 1, 0])