def testSetExplicityFileType(self):
        dobj = PBXFileReference.create("path")

        dobj.set_explicit_file_type("something")

        self.assertEqual(dobj.explicitFileType, "something")
        self.assertIsNone(dobj["lastKnownFileType"])
Exemplo n.º 2
0
    def testSetExplicityFileType(self):
        dobj = PBXFileReference.create("path")

        dobj.set_explicit_file_type('something')

        self.assertEqual(dobj.explicitFileType, "something")
        self.assertIsNone(dobj['lastKnownFileType'])
    def testSetLastTypeRemovesExplicit(self):
        dobj = PBXFileReference.create("path")

        dobj.set_explicit_file_type("something")
        dobj.set_last_known_file_type("something")

        self.assertEqual(dobj.lastKnownFileType, "something")
        self.assertIsNone(dobj["explicitFileType"])
Exemplo n.º 4
0
    def testSetLastTypeRemovesExplicit(self):
        dobj = PBXFileReference.create("path")

        dobj.set_explicit_file_type('something')
        dobj.set_last_known_file_type('something')

        self.assertEqual(dobj.lastKnownFileType, "something")
        self.assertIsNone(dobj['explicitFileType'])
    def testPrintOnSingleLine(self):
        obj = {"isa": "PBXFileReference", "name": "something"}
        dobj = PBXFileReference().parse(obj)

        self.assertEqual(dobj.__repr__(), "{isa = PBXFileReference; name = something; }")
Exemplo n.º 6
0
    def testPrintOnSingleLine(self):
        obj = {"isa": "PBXFileReference", "name": "something"}
        dobj = PBXFileReference().parse(obj)

        self.assertEqual(dobj.__repr__(),
                         "{isa = PBXFileReference; name = something; }")