Permalink
Browse files

Added the negative case too

  • Loading branch information...
1 parent 455416c commit 09f9fc9a3bc65bb7eb3b8dfbcc848a227ea89895 @ethankhall ethankhall committed Aug 9, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/profile_test.py
View
@@ -15,3 +15,8 @@ def test_package_name_filter(self):
profile = Profile(name = 'package_filt', packages = ['com.example.test'])
self.assertFalse(profile.include({'message' : 'Start proc com.example.test for activity tw.com.xxxx.android.yyyy/.333Activity: pid=123456 uid=10105 gids={3003}'}))
self.assertTrue(profile.include({'pid' : '123456', 'message' : 'foo bar'}))
+
+ def test_empty_package_will_still_work(self):
+ profile = Profile(name = 'package_filt')
+ self.assertTrue(profile.include({'message' : 'Start proc com.example.test for activity tw.com.xxxx.android.yyyy/.333Activity: pid=123456 uid=10105 gids={3003}'}))
+

0 comments on commit 09f9fc9

Please sign in to comment.