<commit_before>import unittest

import rdflib


class NTTestCase(unittest.TestCase):

    slow = True # since it's hitting the network (and was at least
                # slow just now)

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def testModel(self):
        g = rdflib.Graph()
        g.load("http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-empty-property-elements/test002.nt", format="nt")


if __name__ == "__main__":<commit_msg>Fixes issue 78 This was fixed already - this adds a test-case<commit_after>import unittest

from rdflib import Graph, Literal, URIRef


class NTTestCase(unittest.TestCase):

    slow = True # since it's hitting the network (and was at least
                # slow just now)

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def testIssue78(self):
        g = Graph()
        g.add((URIRef("foo"), URIRef("foo"), Literal(u"R\u00E4ksm\u00F6rg\u00E5s")))
        s=g.serialize(format='nt')
        self.assertEquals(type(s), str)
        self.assertTrue(r"R\u00E4ksm\u00F6rg\u00E5s" in s)




if __name__ == "__main__":
{'fraction_non_alphanumeric': 0.1196043165467626, 'fraction_numerical': 0.02877697841726619, 'mean_word_length': 2.661184210526316, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2706640', 'n_tokens_mistral': 409, 'n_tokens_neox': 381, 'n_words': 90}