def test_package_path(self): self.assertEqual('com', AaptTask.package_path('com'))
def test_not_aapt_target(self): with self.android_library() as android_library: self.assertFalse(AaptTask.is_android_binary(android_library))
def test_package_path_translation(self): self.assertEqual(os.path.join('com', 'pants', 'example', 'tests'), AaptTask.package_path('com.pants.example.tests'))
def test_is_aapt_target(self): with self.android_binary() as android_binary: self.assertTrue(AaptTask.is_android_binary(android_binary))
def test_package_path(self): self.assertEqual("com", AaptTask.package_path("com"))
def test_package_path_translation(self): self.assertEqual( os.path.join("com", "pants", "example", "tests"), AaptTask.package_path("com.pants.example.tests") )