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

        dobj.set_explicit_file_type("something")

        self.assertEqual(dobj.explicitFileType, "something")
        self.assertIsNone(dobj["lastKnownFileType"])
示例#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"])
示例#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'])