Completed
Pull Request — master (#136)
by Jasper
01:23
created

PictureCacheTests   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_Serialize() 0 4 1
1
from unittest import TestCase
2
from mock import Mock, sentinel, patch
3
4
5
class PictureCacheTests(TestCase):
6
7
    def test_Serialize(self):
8
        from niprov.pictures import PictureCache
9
        pictures = PictureCache(sentinel.dependencies)
10
        pictures.serialize(sentinel.img)
11
12