File: groups.rs

package info (click to toggle)
rust-uzers 0.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 284 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate uzers;

#[cfg(feature = "test-integration")]
mod integration {
    #[test]
    fn test_group_by_name() {
        let group = uzers::get_group_by_name("bosses");

        assert_eq!(group.is_some(), true);

        let group = group.unwrap();

        assert_eq!(group.gid(), 42);
        assert_eq!(group.name(), "bosses");
    }
}