Beispiel #1
0
def add_description(entry):
    if entry is not None:
        entry.append(formatter.format_description(entry[2]))
    return entry
Beispiel #2
0
 def test_example_description(self):
     desc = ['grassland', 'prairie', 'CL:\u7247[pian4]']
     self.assertEqual('grassland; prairie; CL:\u7247[pian4]',
                      formatter.format_description(desc))
Beispiel #3
0
 def test_basic_description(self):
     self.assertEqual('a', formatter.format_description(['a']))
Beispiel #4
0
 def test_multiple_descriptions(self):
     desc = ['a', 'b', 'c']
     self.assertEqual('a; b; c', formatter.format_description(desc))
Beispiel #5
0
 def test_basic_description(self):
     self.assertEqual('a', formatter.format_description(['a']))
Beispiel #6
0
 def test_example_description(self):
     desc = ['grassland', 'prairie', 'CL:\u7247[pian4]']
     self.assertEqual('grassland; prairie; CL:\u7247[pian4]', formatter.format_description(desc))
Beispiel #7
0
 def test_multiple_descriptions(self):
     desc = ['a', 'b', 'c']
     self.assertEqual('a; b; c', formatter.format_description(desc))
Beispiel #8
0
def add_description(entry):
    if entry is not None:
        entry.append(formatter.format_description(entry[2]))
    return entry